package com.cafuc.discipline.respone;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description: 封装返回代码
 * @Auther: Mete
 * @Date: 2022/11/15
 */

@Getter
@AllArgsConstructor
public enum ResultCode {

    //成功提示码
    SUCCESS(200, "success"),

    //自定义失败信息
    FAILURE(501, "failure"),

    //通用错误码 502~599
    PROGRAM_INSIDE_EXCEPTION(502, "程序内部异常"),

    REQUEST_PARAM_ERROR(503, "请求参数错误");


    private final Integer code;
    private final String message;

}